﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<Veteran_cms.Models.banner>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<!-- Validation form -->
<%using (Html.BeginForm("Details", "ManageBanner", new { id = Model.banner_id }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "form", id = "validate" }))
    { %>
    <!-- Multiple files uploader -->
    <%--<div class="widget">
        <div class="title"><img src="../../Images/adminSite/icons/dark/upload.png" alt="" class="titleIcon" /><h6>Tải Logo hoặc hình ảnh của đối tác</h6></div>
        <div id="uploader"></div>
    </div>--%>
    <fieldset>
        <div class="widget">
         <div style="float: right">
                    <a href="<%=Url.Action("IndexBanner","ManageBanner") %>" title="" class="button colorpicker_slider" style="margin: 5px;">
                        <img src="../../images/adminSite/icons/prev.png" alt="" class="icon" /><span>TRỞ VỀ</span></a></div>
                        <div style="float:right"><a href="<%=Url.Action("Create","ManageBanner") %>" title="" class="button colorpicker_slider" style="margin: 5px;"><img src="../../Images/adminSite/icons/dark/add.png" alt="" class="icon" /><span>THÊM MỚI</span></a></div>
            <div class="title"><img src="../../Images/adminSite/icons/dark/pencil.png" alt="" class="titleIcon" /><h6>Thông tin Banner</h6></div>
            <%if (ViewData["Msg"] != null)
                  {%>
                <div class="nNote nSuccess hideit">
                    <p>
                        <strong>
                            <%=ViewData["Msg"]%></strong></p>
                </div>
                <%} %>
            <div class="formRow">
                <label>Hình ảnh:<span class="req">* (980x400)</span></label>
                <div class="formRight"><img src="<%=Model.image_thumb %>" alt="<%=Model.title%>"/></div>
                <div class="formRight"><input type="file" id="file1" name="uploadFile" /></div>
                <div class="clear"></div>
            </div>
            <div class="formRow">
                <label>Tiêu đề:<span class="req">*</span></label>
                <div class="formRight"><%:Html.TextBoxFor(model => model.title, new { @class = "validate[required,maxSize[255]]", id = "req" })%></div>
                <div class="clear"></div>
            </div>
            <div class="formRow">
                <label>Nội dung:<span class="req">*</span></label>
                <div class="formRight"><%:Html.TextAreaFor(model => model.content, new { @class = "validate[autoGrow,maxSize[500]]", id = "textareaAutoGrow", rows = "8", cols = "" })%></div>
                <div class="clear"></div>
            </div>
            <div class="formRow">
                <label>Diễn giải:<span class="req">*</span></label>
                <div class="formRight"><%:Html.TextAreaFor(model => model.description, new { @class = "validate[autoGrow,maxSize[500]]", id = "textareaAutoGrow", rows = "8", cols = "" })%></div>
                <div class="clear"></div>
            </div>
             <div class="formRow">
                <label>Thứ tự:<span class="req">*</span></label>
                 <div class="formRight"><%:Html.TextBoxFor(model => model.sortorder, new { @class = "validate[required,custom[onlyNumberSp]]", id = "req" })%></div>
                <div class="clear"></div>
            </div>
            <div class="formRow">
                <div class="formRight">
                  <%=Html.CheckBoxFor(mode=>mode.visible) %><label for="check1">Cho phép hiển thị</label>
                </div>
                <div class="clear"></div>
            </div>
            
        </div>
        <div class="widget">
             <div class="formSubmit"><input type="submit" value="cập nhật" class="blueB" /></div>
            <%} %> 
            <%using (Html.BeginForm("Delete","ManageBanner",new{id=Model.banner_id},FormMethod.Post, new { enctype = "multipart/form-data", @class = "form"})){ %>
            <div class="formSubmit"><input type="submit" value="Xóa" class="redB" /></div>
             <div><%:Html.HiddenFor(model => model.banner_id)%></div>
           <%} %>
            <div class="clear"></div>
           
        </div>
             
    </fieldset>
   
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleAreaPlaceHolder" runat="server">
</asp:Content>
